﻿using System;

namespace OptimalisationFramework.Utilities.Graphs
{
    class Edge<Identification, Data, Weight>
    {
        private Identification begin, end;
        private Weight w;


        public Edge(Identification begin, Identification end, Weight w)
        {
            this.begin = begin;
            this.end = end;
            this.w = w;
        }


        public Weight W
        {
            get { return w; }
        }

        public Identification End
        {
            get { return end; }
        }

        public Identification Begin
        {
            get { return begin; }
        }

        public override string ToString()
        {
            return "(" + begin.ToString() + ", " + end.ToString() + ") ";
        }
    }
}
